<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<html>
<head>
<title>shiro-web</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/layout-default-latest.css">
</head>
<body>
	<iframe name="content" class="ui-layout-center" src="${pageContext.request.contextPath }/welcome" >
	</iframe>
	
	<div class="ui-layout-north">欢迎[<shiro:principal/>]学习Shiro，<a href="${pageContext.request.contextPath}/logout">退出</a></div>
	<div class="ui-layout-south">
		感谢开涛博客，获取源码<a href="https://github.com/zhangkaitao/shiro-example" target="_blank">https://github.com/zhangkaitao/shiro-example</a>
	</div>
	<div class="ui-layout-west">
	功能菜单<br/>
	<c:forEach items="${menus}" var="m">
		<a href="${pageContext.request.contextPath }/${m.url}" target="content">${m.name}</a><br/>
	</c:forEach>
    
	</div>
	<script src="${pageContext.request.contextPath}/static/js/jquery-1.11.0.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/jquery.layout-latest.min.js"></script>
	<script>
    $(function () {
        $(document).ready(function () {
            $('body').layout({ applyDemoStyles: true });
        });
    });
</script>
</body>
</html>